package com.jiejie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 辰广
 * @since 2022-10-05
 */
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "customer_id", type = IdType.AUTO)
    private Integer customerId;

    /**
     * 用户名
     */
    private String customerName;

    /**
     * 密码
     */
    private String customerPassword;

    /**
     * 电话
     */
    private Long customerTel;

    /**
     * 邮箱
     */
    private String customerEmail;

    /**
     * 注册时间
     */
    private LocalDateTime customerRegistTime;

    /**
     * 用户状态
     */
    private Integer customerStatus;

    /**
     * 锁
     */
    private Integer customerVersion;

    private LocalDateTime customerCreateTime;

    private LocalDateTime customerUpdateTime;

    private String other1;

    private String other2;

    public Customer(Integer customerId, String customerName, String customerPassword, Long customerTel, String customerEmail, LocalDateTime customerRegistTime, Integer customerStatus, Integer customerVersion, LocalDateTime customerCreateTime, LocalDateTime customerUpdateTime, String other1, String other2) {
        this.customerId = customerId;
        this.customerName = customerName;
        this.customerPassword = customerPassword;
        this.customerTel = customerTel;
        this.customerEmail = customerEmail;
        this.customerRegistTime = customerRegistTime;
        this.customerStatus = customerStatus;
        this.customerVersion = customerVersion;
        this.customerCreateTime = customerCreateTime;
        this.customerUpdateTime = customerUpdateTime;
        this.other1 = other1;
        this.other2 = other2;
    }
    public Customer(){}

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }
    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }
    public String getCustomerPassword() {
        return customerPassword;
    }

    public void setCustomerPassword(String customerPassword) {
        this.customerPassword = customerPassword;
    }
    public Long getCustomerTel() {
        return customerTel;
    }

    public void setCustomerTel(Long customerTel) {
        this.customerTel = customerTel;
    }
    public String getCustomerEmail() {
        return customerEmail;
    }

    public void setCustomerEmail(String customerEmail) {
        this.customerEmail = customerEmail;
    }
    public LocalDateTime getCustomerRegistTime(LocalDateTime now) {
        return customerRegistTime;
    }

    public void setCustomerRegistTime(LocalDateTime customerRegistTime) {
        this.customerRegistTime = customerRegistTime;
    }
    public Integer getCustomerStatus() {
        return customerStatus;
    }

    public void setCustomerStatus(Integer customerStatus) {
        this.customerStatus = customerStatus;
    }
    public Integer getCustomerVersion() {
        return customerVersion;
    }

    public void setCustomerVersion(Integer customerVersion) {
        this.customerVersion = customerVersion;
    }
    public LocalDateTime getCustomerCreateTime() {
        return customerCreateTime;
    }

    public void setCustomerCreateTime(LocalDateTime customerCreateTime) {
        this.customerCreateTime = customerCreateTime;
    }
    public LocalDateTime getCustomerUpdateTime() {
        return customerUpdateTime;
    }

    public void setCustomerUpdateTime(LocalDateTime customerUpdateTime) {
        this.customerUpdateTime = customerUpdateTime;
    }
    public String getOther1() {
        return other1;
    }

    public void setOther1(String other1) {
        this.other1 = other1;
    }
    public String getOther2() {
        return other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2;
    }

    @Override
    public String toString() {
        return "Customer{" +
            "customerId=" + customerId +
            ", customerName=" + customerName +
            ", customerPassword=" + customerPassword +
            ", customerTel=" + customerTel +
            ", customerEmail=" + customerEmail +
            ", customerRegistTime=" + customerRegistTime +
            ", customerStatus=" + customerStatus +
            ", customerVersion=" + customerVersion +
            ", customerCreateTime=" + customerCreateTime +
            ", customerUpdateTime=" + customerUpdateTime +
            ", other1=" + other1 +
            ", other2=" + other2 +
        "}";
    }
}
